<%-- 
    Document   : GestionarKardex
    Created on : 21-abr-2014, 17:07:07
    Author     : Isaac Paliza <anndysaac@hotmail.com>
--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html lang="es">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
        <meta charset="utf-8"/>
        <link rel="stylesheet" href="css.css" />
        <style>
            .Rotate-90 {
                -webkit-transform: rotate(-90deg);
                -moz-transform: rotate(-90deg);
                -ms-transform: rotate(-90deg);
                -o-transform: rotate(-90deg);
                transform: rotate(-90deg);

                -webkit-transform-origin: 50% 50%;
                -moz-transform-origin: 50% 50%;
                -ms-transform-origin: 50% 50%;
                -o-transform-origin: 50% 50%;
                transform-origin: 50% 50%;

                margin:0;
                padding:0;
            }
        </style>
    </head>
    <body>
        <header>
            <samp style=color:#FA6900;>Gestionar Kardex</samp>
        </header>
        <section>
            <section>
                <table style=color:#FFFFFF; bgcolor= "#8A9B0F" width="100%" height="100%">
                    <c:forEach items="${requestScope['CargarKardexCabezera']}" var="d" varStatus="c">
                        <tr>
                            <th align="left" width="70%" rowspan="2" colspan="2">Colegio:<i> # ${d['idColegio']} ${d['nombre']}</i></th>
                            <th align="right" width="30%" >Distrito:<i> ${d['distrito']}</i></th>
                        </tr>
                        <tr>
                            <th align="right" colspan="2">Fecha:<i> 28-04-2014</i></th>
                        </tr>
                        <tr>
                            <th align="left" colspan="3">Duracion:<i> ${d['duracion']}</i></th>
                        </tr>
                    </c:forEach>
                </table>
            </section>
            <br>
            <table width="100%" height="100%">
                <tr>
                <form action='GestionarKardex' method="GET" >
                    <th align="left">Tipo de Movimiento</th>
                    <th align="left">
                        <select name="idTipoMovimiento" onchange="opcionSelect(this.form)">
                            <option value="0" selected>Seleccionar...</option>
                            <option value="1">Movimiento Salida</option>
                            <option value="2">Movimiento Entrada</option>
                        </select>
                    </th>
                    <th align="left">
                        <input type="submit" value = "OK" name="evaluarTipoMov" >
                        ${requestScope['Mensaje']}
                    </th>
                </form>
                </tr>
            </table>
            <table width="100%" height="100%">
                <tr bgcolor= "#FBB829" border="1px" style="font-size: 12px;">
                    <th rowspan="2"  >N.</th>
                    <th width="10%" rowspan="2">CODIGO</th>
                    <th align="left" width="40%"rowspan="2">NOMBRE DE LIBROS</th>
                    <th>A</th>
                    <th>B</th>
                    <th>C</th>
                    <th>D</th>
                    <th>E</th>
                    <th>F</th>
                    <th>G</th>
                    <th>H</th>
                    <th>I</th>
                </tr>
                <tr bgcolor= "#FBB829" style="font-size: 10px;">
                    <th>SALDO</th>
                    <th>REPO-<br>SICION</th>
                    <th>N/C CAMBIOS</th>
                    <th>TOTAL A+B+C</th>
                    <th>SE VENDIO</th>
                    <th>NUMERO DE SALDO D-F</th>
                    <th>SE VENDIO</th>
                    <th>PRECIO S/.</th>
                    <th>TOTAL S/.</th>
                </tr>
                <c:forEach items="${requestScope['CargarKardex']}" var="d" varStatus="c">
                    <c:choose>
                        <c:when test="${(c.count % 2) == 0}"></c:when>
                        <c:otherwise><tr style="margin:0;" cellpadding="0" rules="groups" border="1"></c:otherwise>
                        </c:choose>
                        <td>${c.count}</td>
                        <td align="center" >${d['codigoArt']}</td>
                        <td>${d['nombre']}</td>
                        <td align="center">${d['cantidad']}</td>
                        <td align="center">${d['reposicion']}</td>
                        <td></td>
                        <td></td>
                        <td align="center" >${d['cantidadVenta']}</td>
                        <td></td>
                        <td></td>
                        <td align="right">${d['precioT']}</td>
                        <td></td>
                    </tr>
                </c:forEach>
            </table>
        </section>
    </body>
</html>
